#ifndef QMSGBROWSER_H
#define QMSGBROWSER_H

#include <QWidget>
#include <QTextBrowser>
#include <QMovie>

class QMsgBrowser:public QTextBrowser
{
        Q_OBJECT
public:
    explicit QMsgBrowser(QWidget *parent = nullptr);
    ~QMsgBrowser();
    QString giftoHtml(QString content);
    void delteAllEmotionImage();
private:
    QList<QString> m_listEmotionUrl;//表情
    QMap<QMovie*,QString> m_emotionMap;
signals:

protected slots:
    void onEmotionImageFrameChange(int frame);
protected:
    QString addEmotionUrl(QString filename);
};

#endif // QMSGBROWSER_H
